Handle filesystems loop-mounted on file images
authorColin Watson <cjwatson@debian.org>
Mon, 13 Jan 2014 12:13:00 +0000 (12:13 +0000)
committerMiao Wang <shankerwangmiao@gmail.com>
Sun, 15 Feb 2026 13:50:20 +0000 (13:50 +0000)
commitc7604066a6e9f70e744092fafdb663a1df52d82d
tree46d702cd13c827449b6a8fb6722ad0fc46f7d948
parent3d13b05a5c4e9e5430099be05b450bf14ce78701
Handle filesystems loop-mounted on file images

Improve prepare_grub_to_access_device to emit appropriate commands for
such filesystems, and ignore them in Linux grub.d scripts.

This is needed for Ubuntu's Wubi installation method.

This patch isn't inherently Debian/Ubuntu-specific.  losetup and
/proc/mounts are Linux-specific, though, so we might need to refine this
before sending it upstream.  The changes to the Linux grub.d scripts
might be better handled by integrating 10_lupin properly instead.

Patch-Name: mkconfig-loopback.patch

Gbp-Pq: Name mkconfig-loopback.patch
util/grub-mkconfig_lib.in
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in